package com.szlanyou.thirdsdk.retrofit.interceptor;

/**
 * @author 陈章
 * create at 2021/6/26 10:16
 * desc:用于缓存OkHttp的请求，用于本地日志存储。
 */
public class OkHttpRequestCacher {
    private static OkHttpRequestCacher instance;
    private String requestInfo;

    private OkHttpRequestCacher() {
    }

    public static OkHttpRequestCacher getInstance() {
        if (instance == null) {
            synchronized (OkHttpRequestCacher.class) {
                if (instance == null) {
                    instance = new OkHttpRequestCacher();
                }
            }
        }
        return instance;
    }

    public String getRequestInfo() {
        return requestInfo;
    }

    public void setRequestInfo(String requestInfo) {
        this.requestInfo = requestInfo;
    }
}